<?
require_once('inc/function.php');
$conn= GetConnection();
$response = $conn->query("SELECT * FROM User");
?>


<!DOCTYPE html>
<html lang="en">
        <head>
                <meta charset="utf-8" />

                <title>index</title>
                
        </head>

        <body>
                <div>
                        <header>
                                <h1>index</h1>
                        </header>
                        <nav>
                                <p>
                                        <a href="/">Home</a>
                                </p>
                                <p>
                                        <a href="/contact">Contact</a>
                                </p>
                        </nav>

                        <div>
                  <ul>
                        <? while($rs = $response->fetch_assoc()): ?>
                        <li><?=$rs['FirstName']?> <?=$rs['LastName']?></li>
                        <? endwhile; ?>
                        </ul>
                        </div>

                        <footer>
                                <p>
                                        &copy; Copyright  by New Paltz
                                </p>
                        </footer>
                </div>
        </body>
</html>